package com.luo.backend.dto;

import javax.validation.constraints.*;

/**
 * 参与团购请求DTO
 */
public class JoinGroupBuyingRequest {
    
    @NotNull(message = "参与数量不能为空")
    @Min(value = 1, message = "参与数量不能少于1")
    @Max(value = 10, message = "参与数量不能超过10")
    private Integer quantity;
    
    @Size(max = 20, message = "辣度选择不能超过20字符")
    private String spiceLevel;
    
    // Getters and Setters
    public Integer getQuantity() {
        return quantity;
    }
    
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    
    public String getSpiceLevel() {
        return spiceLevel;
    }
    
    public void setSpiceLevel(String spiceLevel) {
        this.spiceLevel = spiceLevel;
    }
}

